﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true"
    CodeBehind="Form.aspx.cs" Inherits="SisTransportes.Apresentacao.WebForm.Cliente.Form" %>

<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
    
    <script type="text/javascript">
        jQuery(function () {
            jQuery("#tab1").tabs("div.panes > div");
        });
    </script>

</asp:Content>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <h1>
        Formulário de clientes
    </h1>
    <!-- formulario -->
    <div class="painel_super">
        <a href="#" class="b">
            <img src="../Images/itens_01_2.png" width="22" height="25" alt="Novo" title="Novo" /></a>

        <!-- tabs -->
        <ul id="tab1" class="tabs">
            <li><a id="t1" href="#tab1">Dados cadastrais</a></li>
            <li><a id="t2" href="#tab2">Dados complementares</a></li>
        </ul>
        <!-- /tabs -->

        <!-- painel -->
        <div class="panes">

            <div class="pane">
                <div class="formulario">
                    <fieldset>
                        <legend>Pessoa</legend>

                        <div class="linha">
                            <div class="campo">
                                <label for="TextNome">
                                    Tipo cliente <span class="txt_red">*</span></label>
                                <asp:RadioButtonList ID="RadioButtonList_TipoCliente" runat="server" RepeatDirection="Horizontal" Font-Italic="True" RepeatLayout="Flow" OnSelectedIndexChanged="RadioButtonList_TipoCliente_OnSelectedIndexChanged" AutoPostBack="true" CssClass="radio_button_list">
                                    <asp:ListItem Selected="True" Value="0">Pessoa física</asp:ListItem>
                                    <asp:ListItem Value="1">Pessoa jurídica</asp:ListItem>
                                </asp:RadioButtonList>
                            </div>
                            <div class="clear">
                            </div>
                        </div>

                        <!-- multiview -->
                        <asp:MultiView ID="MultiView_TipoCliente" runat="server" ActiveViewIndex="0">

                            <asp:View ID="TipoPessoaFisica" runat="server">
                                <div class="linha">
                                    <div class="campo">
                                        <label for="TextCPF">CPF <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextCPF" ClientIDMode="Static" Width="120" runat="server" />
                                    </div>
                                    <div class="campo">
                                        <label for="TextNome">Nome <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextNome" ClientIDMode="Static" Width="200" runat="server" />
                                    </div>
                                    <div class="campo">
                                        <label for="TextSobrenome">Sobenome <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextSobrenome" ClientIDMode="Static" Width="200" runat="server" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </asp:View>


                            <asp:View ID="TipoPessoaJuridica" runat="server">
                                <div class="linha">
                                    <div class="campo">
                                        <label for="TextCNPJ">CNPJ <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextCNPJ" ClientIDMode="Static" Width="120" runat="server" />
                                    </div>
                                    <div class="campo">
                                        <label for="TextNomeEmpresa">Nome da Empresa <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextNomeEmpresa" ClientIDMode="Static" Width="180" runat="server" />
                                    </div>
                                    <div class="campo">
                                        <label for="TextNomeFantasia">Nome Fantasia <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextNomeFantasia" ClientIDMode="Static" Width="180" runat="server" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>

                                <div class="linha">
                                    <div class="campo">
                                        <label for="TextNomeResponsavelEmpresa">Nome Responsável <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextNomeResponsavelEmpresa" ClientIDMode="Static" Width="200" runat="server" />
                                    </div>
                                    <div class="campo">
                                        <label for="TextCPFeResponsavelEmpresa">CPF Responsável <span class="txt_red">*</span></label>
                                        <asp:TextBox ID="TextCPFeResponsavelEmpresa" ClientIDMode="Static" Width="120" runat="server" />
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </asp:View>

                        </asp:MultiView>
                        <!-- /multiview -->
  
                    </fieldset>

                    <fieldset>
                        <legend>Status</legend>
                        <div class="linha">
                            <div class="campo">
                                <label for="RadioButtonList_Status">Status</label>
                                <asp:RadioButtonList ID="RadioButtonList_Status" ClientIDMode="Static" RepeatDirection="Horizontal" CssClass="radio_button_list" runat="server">
                                    <asp:ListItem Selected="True" Text="ativo" Value="1" />
                                    <asp:ListItem Text="inativo" Value="0" />
                                </asp:RadioButtonList>
                            </div>
                            <div class="campo">
                                <label for="RadioButtonList_Vip">Cliente Vip?</label>
                                <asp:RadioButtonList ID="RadioButtonList_Vip" ClientIDMode="Static" RepeatDirection="Horizontal" CssClass="radio_button_list" runat="server">
                                    <asp:ListItem Text="Sim" Value="1" />
                                    <asp:ListItem Selected="True" Text="Não" Value="0" />
                                </asp:RadioButtonList>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </fieldset>

                    
                </div>
            </div>

            <div class="pane">
                <div class="formulario">
                    <fieldset>
                        <legend>Contatos</legend>
                        <div class="linha">
                            <div class="campo">
                                <label for="TextEmail">E-mail <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextEmail" ClientIDMode="Static" Width="220" runat="server" />
                            </div>
                            <div class="campo">
                                <label for="TextConfirmaEmail">Confirma E-mail <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextConfirmaEmail" ClientIDMode="Static" Width="220" runat="server" />
                            </div>
                            <div class="clear"></div>
                        </div>

                        <div class="linha">
                            <div class="campo">
                                <span class="leg">apenas números (99) 9999.9999</span>
                                <label for="TextDDDTelefone"> Telefone fixo <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextDDDTelefone" ClientIDMode="Static" Width="40" runat="server" />
                                <asp:TextBox ID="TextTelefone" ClientIDMode="Static" Width="90" runat="server" />
                            </div>
                             <div class="campo">
                                <span class="leg">apenas números (99) 9999.9999</span>
                                <label for="TextDDDCelular">Telefone celular <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextDDDCelular" ClientIDMode="Static" Width="40" runat="server" />
                                <asp:TextBox ID="TextCelular" ClientIDMode="Static" Width="90" runat="server" />
                            </div>
                            <div class="clear"></div>
                        </div>
                        
                    </fieldset>

                    <fieldset>
                        <legend>Endereço</legend>

                        <div class="linha">
                            <div class="campo">
                                <span class="leg">ex: Rua, Av, Alameda...</span>
                                <label for="TextEndereco">Logradouro/Endereço <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextEndereco" ClientIDMode="Static" Width="220" runat="server" />
                            </div>
                            <div class="campo">
                                <label for="TextNumero">Número <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextNumero" ClientIDMode="Static" Width="50" runat="server" />
                            </div>
                            <div class="campo">
                                <span class="leg">ex: casa, apartamento, sobrado...</span>
                                <label for="TextComplemento">Complemento <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextComplemento" ClientIDMode="Static" Width="120" runat="server" />
                            </div>
                            <div class="clear"></div>
                        </div>

                        <div class="linha">
                            <div class="campo">
                                <label for="TextBairro">Bairro <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextBairro" ClientIDMode="Static" Width="140" runat="server" />
                            </div>
                            <div class="campo">
                                <label for="TextCEP">CEP <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextCEP" ClientIDMode="Static" Width="70" runat="server" />
                            </div>
                            <div class="campo">
                                <label for="TextCidade">Cidade <span class="txt_red">*</span></label>
                                <asp:TextBox ID="TextCidade" ClientIDMode="Static" Width="140" runat="server" />
                            </div>
                            <div class="campo">
                                <label for="TextEstado">Estado <span class="txt_red">*</span></label>
                                <asp:DropDownList ID="TextEstado" ClientIDMode="Static" Width="50" runat="server">
                                </asp:DropDownList>
                            </div>
                            <div class="clear"></div>
                        </div>

                    </fieldset>
                </div>
            </div>
        </div>
        <!-- /painel -->
        
        <div class="formulario">
            <div class="linha">
                <div class="campo">
                    <asp:Button ID="BtnSalvar" Text="Salvar" ClientIDMode="Static" runat="server" />
                </div>
            </div>
        </div>

    </div>
    <!-- /formulario -->

    <!-- menu lateral -->
    <sistransportes:MenuLateral ID="MenuLateral1" runat="server" Sessao="config_clientes" />
    <!-- /menu lateral -->

    <div class="clear"></div>

</asp:Content>
